import Layout from '@/layout'

const memberRouter = {
  path: '/member',
  component: Layout,
  redirect: '/member/retailer',
  name: 'Member',
  meta: {
    title: '商家会员管理',
  },
  children: [
    {
      path: 'retailer',
      component: () => import('@/views/member/retailer'),
      name: 'Retailer',
      meta: { title: '商家信息' },
    },
    {
      path: 'recharge_record',
      component: () => import('@/views/member/recharge-record'),
      name: 'RechargeRecord',
      meta: { title: '商家充值记录' },
    },
    {
      path: 'bonus_point',
      component: () => import('@/views/member/bonus-point'),
      name: 'BonusPoint',
      meta: { title: '赠送积分记录' },
    },
    {
      path: 'point_consumption',
      component: () => import('@/views/member/point-consumption'),
      name: 'PointConsumption',
      meta: { title: '客户积分消费记录' },
    },
    {
      path: 'employee',
      component: () => import('@/views/member/employee'),
      name: 'Employee',
      meta: { title: '授权员工' },
    },
  ]


}

export default memberRouter